package com.team5101.utils;

import java.io.Serializable;

public class StringUtil implements Serializable {

    //字符串拼接
    public static String contcatString(String ... str){
        StringBuilder sB = new StringBuilder();
        int i=0;
        for(String s : str) {
            if(i==0)
                sB.append(s);
            else
                sB.append("#"+s);
            i++;
        }
        return sB.toString();
    }

    //获取文件名称
    public static String stringSuffix(String filename) {
        return filename.substring(filename.indexOf(".")+1);
    }
}
